Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add try-runtime with storage migrations of the encointer-pallets #177

Merged
merged 24 commits into from
Jun 5, 2023

Conversation

pifragile
Copy link
Contributor

@pifragile pifragile commented May 2, 2023

Closes #176 in order to test #175

In order to test this, do the following:

cargo run --bin encointer-node-notee --release --features=try-runtime try-runtime --runtime ../encointer-parachain/target/release/wbuild/encointer-runtime/encointer_runtime.wasm on-runtime-upgrade --checks=all live --uri wss://kusama.api.encointer.org:443

This will simulate the migration including pre- and postmigration checks with the chain data from Kusama.

@clangenb
Copy link
Member

clangenb commented Jun 2, 2023

I have fixed the try-runtime command of the parachain and now I could simply execute:

./target/release/encointer-collator try-runtime --chain encointer-kusama-local --runtime ./target/release/wbuild/encointer-runtime/encointer_runtime.wasm on-runtime-upgrade --checks=all live --uri wss://kusama.api.encointer.org:443

Which returned:

2023-06-02 17:17:34 since no at is provided, setting it to latest finalized head, 0x0591491cfcd6807d4903715056b7df7a4a551d771c2b4e78b751834ff589c59c
2023-06-02 17:17:34 since no prefix is filtered, the data for all pallets will be downloaded
2023-06-02 17:17:34 scraping key-pairs from remote at block height 0x0591491cfcd6807d4903715056b7df7a4a551d771c2b4e78b751834ff589c59c
2023-06-02 17:17:36 Querying a total of 7027 keys from prefix , splitting among 16 threads, 440 keys per thread
2023-06-02 17:17:38 adding data for hashed prefix: , took 3s
2023-06-02 17:17:38 adding data for hashed key: 3a636f6465
2023-06-02 17:17:38 adding data for hashed key: 26aa394eea5630e07c48ae0c9558cef7f9cce9c888469bb1a0dceaa129672ef8
2023-06-02 17:17:38 adding data for hashed key: 26aa394eea5630e07c48ae0c9558cef702a5c1b19ab7a04f536c519aca4983ac
2023-06-02 17:17:38 initialized state externalities with storage root 0xfcad66e2e9d70c0eb86b294d639e406fa34a6b7789be6376498622cc489f2a0e and state_version V0
2023-06-02 17:17:38 original spec: RuntimeString::Owned("encointer-parachain")-12, code hash: ccdfc804e0482f951ef7ad15fda0d38ead81c42e93a8276e60a45c663b8a3b91
2023-06-02 17:17:38 new spec: RuntimeString::Owned("encointer-parachain")-13, code hash: c6a1f777da8a7e8da3d586df663cb305654614c348a4e77db5fa67ab4d20e6a3
2023-06-02 17:17:39 2 cids will be migrated.
2023-06-02 17:17:39 3 cids by geohash will be migrated.
2023-06-02 17:17:39 13 locations by geohash will be migrated.
2023-06-02 17:17:39 16 bootstrappers will be migrated.
2023-06-02 17:17:39 2 community identifiers migrated
2023-06-02 17:17:39 3 community identifiers by geohash migrated
2023-06-02 17:17:39 13 locations migrated
2023-06-02 17:17:39 16 bootstrappers migrated
2023-06-02 17:17:39 1074 attestations will be migrated.
2023-06-02 17:17:39 1074 attestations migrated
2023-06-02 17:17:39 ⚠️ ParachainSystem declares internal migrations (which *might* execute). On-chain `StorageVersion(1)` vs current storage version `StorageVersion(2)`
2023-06-02 17:17:39 ⚠️ XcmpQueue declares internal migrations (which *might* execute). On-chain `StorageVersion(1)` vs current storage version `StorageVersion(2)`
2023-06-02 17:17:39 ⚠️ PolkadotXcm declares internal migrations (which *might* execute). On-chain `StorageVersion(0)` vs current storage version `StorageVersion(0)`
2023-06-02 17:17:39 ⚠️ DmpQueue declares internal migrations (which *might* execute). On-chain `StorageVersion(0)` vs current storage version `StorageVersion(1)`
2023-06-02 17:17:39 TryRuntime_on_runtime_upgrade executed without errors. Consumed weight = (1300000000 ps, 0 byte), total weight = (500000000000 ps, 5242880 byte) (0.26 %, 0.00 %).

So I suspect that everything is fine 👍

@clangenb clangenb changed the title Try runtime Add try-runtime with storage migrations of the encointer-pallets Jun 2, 2023
@clangenb clangenb merged commit 92da6dc into master Jun 5, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

implement try-runtime
2 participants